int by_month(char input_arr[]) {
    char c;
    int input = 0;
    FILE * fPtr = NULL;

    printf("Horoscope for the Month:\n");

    //if input_arr is Integer  goto Switch
    int Intreturnvalue = isInteger(input_arr);
    if (Intreturnvalue == 1) {
        fPtr = fopen("startup.txt", "r");
        input = atoi(input_arr);
    } else {
        // Convert to Number
        input = monthsToday(input_arr);
    }

    switch (input) {
            fflush(stdin);
            printf("Before print: %d <=\n", input);
            printf("\n");
        case 0:
            fPtr = fopen("months//months", "r");
            break;

        case 01:
            fPtr = fopen("months//january", "r");
            break;

        case 02:
            fPtr = fopen("months//february", "r");

            break;

        case 03:
            fPtr = fopen("months//march", "r");

            break;

        case 04:
            fPtr = fopen("months//april", "r");

            break;

        case 05:
            fPtr = fopen("months//may", "r");
            break;

        case 06:
            fPtr = fopen("months//june", "r");

            break;

        case 07:
            fPtr = fopen("months//july", "r");

            break;

        case 8:
            fPtr = fopen("months//august", "r");

            break;

        case 9:
            fPtr = fopen("months//september", "r");

            break;

        case 10:
            fPtr = fopen("months//october", "r");

            break;

        case 11:
            fPtr = fopen("months//november", "r");

            break;

        case 12:
            fPtr = fopen("months//december", "r");
            break;

        default:

            fPtr = fopen("months//wrong.txt", "r");

    }
    
    while ((c = getc(fPtr)) != EOF) {
        putchar(c);
    }
    fclose(fPtr);
}

int mystrlen(char * str) {
    int i = 0;
    for (i = 0; *(str + i) != '\0'; i++);
    return i;
}

// Function to convert string into lower case and return month numerical equivalent

/* Do some conventions from String to Int
 * E.g. january => 01
 */
int monthsToday(char str_month[]) {
    // Convert Upper case characters to lower
    char strmonth[10];
    int i = 0;
    int returnmonth = 0;
    int cc = strlen(str_month);
    // Convert all characters to lower case
    for (i = 0; i <= cc; i++) {
        strmonth[i] = tolower(str_month[i]);
    }
    // End of Conventions
    
    //Do comparison and return numerical value of the month
    fflush(stdout);
    if (strcmp(strmonth, "january") == 0) {
        return 01;
    } //strcmp(month,"february") == 0 ? return 01: return 1;
    if (strcmp(strmonth, "february") == 0) {
        return 02;
    }
    if (strcmp(strmonth, "march") == 0) {
        return 03;
    }
    if (strcmp(strmonth, "april") == 0) {
        return 04;
        //return 04;
    }
    if (strcmp(strmonth, "may") == 0) {
        return 05;
    }
    if (strcmp(strmonth, "june") == 0) {
        return 06;
    }
    if (strcmp(strmonth, "july") == 0) {
        return 07;
    }
    if (strcmp(strmonth, "august") == 0) {
        return 8;
    }
    if (strcmp(strmonth, "september") == 0) {
        return 9;
    }
    if (strcmp(strmonth, "october") == 0) {
        return 10;
    }
    if (strcmp(strmonth, "november") == 0) {
        return 11;
    }
    if (strcmp(strmonth, "december") == 0) {
        return 12;
    } else {
        return 19;
    }

    /* if (strcmp(strmonth, "all") == 0) {
         returnmonth =  0;
     }
     */
    //return 01;
    printf("return->month: %d", returnmonth);
    return returnmonth;

}

// Function to check if string enter combines both strings and numbers

/* Getting ASCII values to check for Comparison

 * If Return Value is 1 then Is Integer
 * 
 * 
 */
int isInteger(char str[]) {
    int i = 0;
    int returnvalue = 1;
    int strint = 0;
    strint = strlen(str);
    for (i = 0; i <= strint; i++) {        
    if(str[i] >=97 && str[i] <= 122){
       // printf("Small Letters\n");
        
        returnvalue = 2;
    }
    
    else if(str[i] >= 65 && str[i] <= 90){ // Capital Letter
        //printf("Capital Letters\n");
        returnvalue = 2;
    }
    else if(str[i] >= 48 && str[i] <= 57){ // Numbers
        //printf("Number Letters\n");
        returnvalue = 1;
    }
    /*
    
    if (!isdigit(str[i])) {
    printf("\nCorrect");
            returnvalue = 0;
        } else if (returnvalue == 0 && isdigit(str[i]) <1) {
    printf("\nWrong");
        returnvalue = 2;
        }*/
    }

    //return 1;
    return returnvalue;
}

void defineMonths(char month_day[]) {
    int i = 0; char *mnt[3]; int days[2]; int strint = 0;
    strint = strlen(month_day);
    //printf("%d", strint);
	printf("Month is not fully implement \nCheck in version 0.2\n");
    for (i = 0; i < strint; i++) {
        if(i<2){
            mnt[i] = &month_day[i];
          //  printf("Char %c, %d",month_day[i],month_day[i]);
        }
        else{
            days[i] = month_day[i];
        }   
    }
           // printf("\nMnt Is %s\n", mnt);
            // printf("\nDays %s\n", days);
}
